<%@ page contentType="text/html; charset=utf-8"%>

<%@ include file="/WEB-INF/jsp/includeTaglib.jsp"%>

<table class="dbborder" width="100%" border="0" cellpadding="0" cellspacing="1">
	<tr class="rowHead">
		<td height="20" nowrap align="center" class="globalTextBold">账号</td>
		<td height="20" nowrap align="center" class="globalTextBold">姓名</td>
<!-- 		<td height="20" nowrap align="center" class="globalTextBold">手机</td> -->
		<td height="20" nowrap align="center" class="globalTextBold">角色</td>
<!-- 		<td height="20" nowrap align="center" class="globalTextBold">区域</td> -->
		<td height="20" nowrap align="center" class="globalTextBold">操作</td>
	</tr>
	<c:forEach var="user" items="${page.data}" varStatus="status">
		<tr class="rowClass">
			<td height="20" class="globalText">
				${user.loginName}
			</td>
			<td height="20" class="globalText">
				${user.displayName}
			</td>
<!-- 			<td height="20" class="globalText"></td> -->
			<td height="20" class="globalText">
				${user.permissionRole.name}
			</td>
<!-- 			<td height="20" class="globalText"></td> -->
			<td height="20" class="globalText"><input type="button"
				class="btnStyle" value="编辑"
				onclick="javascript:window.location='beforeEditUser.html?userid=<c:out value="${user.id}"/>'">
				<input type="button" class="btnStyle" value="删除"
				onclick="javascript:delUser('<c:out value="${user.id}"/>')">
			</td>
		</tr>
	</c:forEach>
</table>

<%@ include file="/WEB-INF/jsp/includePagination.jsp"%>

<script>
	function delUser(userId){
		if(confirm('确定删除?')){
			window.location='removeUser.html?userId='+userId;
		}
	}
</script>
